package com.personnalManagerSystem.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.personnalManagerSystem.model.Position;
import com.personnalManagerSystem.mapper.PositionMapper;
import com.personnalManagerSystem.model.Position2;
import com.personnalManagerSystem.service.IPositionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liqing
 * @since 2022-03-31
 */
@Service
public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> implements IPositionService {
    @Autowired
    PositionMapper positionMapper;

    @Override
    public List<Position2> queryPositionItem(QueryWrapper<Position2> wrapper) {
        return positionMapper.queryPositionItem(wrapper);
    }

    @Override
    public Position checkPositionName(String positionName) {
        return positionMapper.checkPositionName(positionName);
    }
}
